import {Injectable} from "@angular/core";

import {HttpClient} from "../../../providers/httpClient";

@Injectable()
export class MarketingMobileService {
    constructor(private httpClient: HttpClient) {}
    getUSPMobileData(name: string): any {
        let postBody: any = {
            module: "OAServer",
            method: "getUSPMobileData",
            params: {
                name: name
            }
        };

        return this.httpClient.post(postBody, {
            isShowLoading: true
        });
    }

  generateUSBMobileData(name) {
    let postBody: any = {
      module: "OAServer",
      method: "generateUSBMobileData",
      params: {
        name: name
      }
    };

    return this.httpClient.post(postBody, {
      isShowLoading: true
    });
  }

  publishUSBMobileData() {
    let postBody: any = {
      module: "OAServer",
      method: "publishUSBMobileData",
      params: {

      }
    };

    return this.httpClient.post(postBody, {
      isShowLoading: true
    });
  }

  rollBackUSBMobileData() {
    let postBody: any = {
      module: "OAServer",
      method: "rollBackUSBMobileData",
      params: {

      }
    };

    return this.httpClient.post(postBody, {
      isShowLoading: true
    });
  }
}
